#include "Singleton.h"
#include <vector>

class ComponentAllocator;

class ComponentManger : public Singleton<ComponentManger>
{
public:
    void add(ComponentAllocator* allocator)
    {
        allocators.push_back(allocator);
    }

    void frameupdate()
    {
        for(auto i : allocators)
        {
            i->frameupdate();
        }
    }
public:
    std::vector<ComponentAllocator*> allocators;
};